<!--
 * @Author: songleiluo 361215740@qq.com
 * @Date: 2024-01-06 11:38:09
 * @LastEditors: songleiluo 361215740@qq.com
 * @LastEditTime: 2024-01-07 09:51:51
 * @FilePath: \dxhospital\src\App.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<script setup lang="ts">
      import {
    onMounted,
    version
  } from "vue";
  import { useAppStore } from '@/store/modules/app';
  const appStore = useAppStore();
  onMounted(()=>{
    console.log('vue',version);
    window.addEventListener('beforeunload',(event:any)=>beforeunloadHandler())
  })
  const beforeunloadHandler=()=>{
      console.info("刷新,更新重新加载路由");
      appStore.addRouteHas(true);
  }
</script>

<template>

<router-view />
</template>

<style scoped>

</style>